package org.springcloud.wisdom.springcloud_03_freshman.index.login.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
//老师
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("teacher")
public class Teacher {
    //主键
    @TableId(type = IdType.AUTO,value = "wisdom.teacher.tid")
    private String tid;
    //教师姓名
    @TableField("wisdom.teacher.tname")
    private String tname;
    //教师密码
    @TableField("wisdom.teacher.tpass")
    private  String tpass;
    //教师所负责的院系
    @TableField("wisdom.teacher.dept")
    private  Integer dept;
}
